﻿@model PetaPoco.Page<SDF.Models.AuthGroup>
<div class="pageContent">
  <div class="panelBar">
    <ul class="toolBar"> 
      <li><a class="add" href="@Url.Action("CreateGroup")" target="navTab"><span>添加用户组</span></a></li>
      <li><a class="delete" href="@Url.Action("DelGroup")?id={trid}" target="ajaxTodo"
        title="确定要删除吗?"><span>删除</span></a></li>
      <li><a class="edit" href="@Url.Action("EditGroup")?id={trid}" target="navTab"><span>修改用户组</span></a></li>
      <li class="line">line</li>
      <li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targettype="navTab"
        title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
    </ul>
  </div>
  <table class="table" width="100%" layoutH="200">
    <thead>
      <tr>
        <th width="30">ID</th>
        <th width="100">用户组</th>
        <th width="100">状态</th>
        <th align="left">描述</th>
        <th width="100">操作</th>
      </tr>
    </thead>
    <tbody>
      @foreach (var item in Model.Items)
      {
        <tr target="trid" rel="@item.Id">
          <td align="center">@item.Id</td>
          <td>@item.Title</td>
          <td align="center">@item.Status</td>
          <td>@item.Remark</td>
          <td><a href="#">配置权限</a>
          <a href="@Url.Action("DelGroup", new { id=item.Id })" target="ajaxTodo"  title="确定要删除吗?">删除</a>
          </td>
        </tr>
      }
    </tbody>
  </table>
  <div class="panelBar">
    <div class="pages">
      <span>显示</span>
      <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
        <option value="20">20</option>
        <option value="50">50</option>
        <option value="100">100</option>
        <option value="200">200</option>
      </select>
      <span>条，共 @Model.TotalItems 条</span>
    </div>
    <div class="pagination" targettype="navTab" totalcount="@Model.TotalItems" numperpage="@Model.ItemsPerPage" pagenumshown="10"
      currentpage="@Model.CurrentPage">
    </div>
  </div>
</div>
<form id="pagerForm" action="@Url.Action("Index","Auth")" method="post">
<input type="hidden" name="pageNum" value="1" /><!--【必须】value=1可以写死-->
<input type="hidden" name="numPerPage" value="@Model.ItemsPerPage" /><!--【可选】每页显示多少条-->
<input type="hidden" name="orderField" value="xxx" /><!--【可选】查询排序-->
<input type="hidden" name="orderDirection" value="asc" /><!--【可选】升序降序-->
<!--【可选】其它查询条件，业务有关，有什么查询条件就加什么参数。
      也可以在searchForm上设置属性rel=”pagerForm”，js框架会自动把searchForm搜索条件复制到pagerForm中 -->
<input type="hidden" name="name" value="xxx" />
<input type="hidden" name="status" value="active" />
</form>
